<template>
  <div>
    <search-form></search-form>
    <a-list
      :grid="{ gutter: 24, xl: 4, lg: 3, md: 3, sm: 2, xs: 1 }"
    >
      <a-list-item style="padding: 0 12px" :key="n" v-for="n in 12">
        <a-card>
          <a-card-meta title="Angular">
            <a-avatar slot="avatar" src="https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png" size="small" />
          </a-card-meta>
            <a-tooltip class="tool"  title="下载" slot="actions">
              <a-icon type="download"></a-icon>
            </a-tooltip>
            <a-tooltip class="tool"  title="编辑" slot="actions">
              <a-icon type="edit"></a-icon>
            </a-tooltip>
            <a-tooltip class="tool"  title="分享" slot="actions">
              <a-icon type="share-alt"></a-icon>
            </a-tooltip>
            <a-dropdown class="tool" slot="actions">
              <a-icon type="ellipsis"></a-icon>
              <a-menu slot="overlay">
                <a-menu-item>1 item</a-menu-item>
                <a-menu-item>2 item</a-menu-item>
                <a-menu-item>3 item</a-menu-item>
              </a-menu>
            </a-dropdown>
          <div class="content">
            <div>
              <p>活跃用户</p>
              <p>18万</p>
            </div>
            <div>
              <p>新增用户</p>
              <p>1,338</p>
            </div>
          </div>
        </a-card>
      </a-list-item>
    </a-list>
  </div>
</template>

<script lang="es6">
module.exports = {
  name: 'ApplicationList',
  components: {
    SearchForm: load('./SearchForm')
  }
}
</script>

<style scoped>
  .content {
    zoom: 1;
    margin-top: 16px;
    margin-left: 40px;
  }
  .content:before,
  .content:after {
    content: ' ';
    display: table;
  }
  .content:after {
    clear: both;
    visibility: hidden;
    font-size: 0;
    height: 0;
  }
  .content  > div {
    position: relative;
    text-align: left;
    float: left;
    width: 50%;
  }
  .content  > div p {
    line-height: 32px;
    font-size: 24px;
    margin: 0;
  }
  .content  > div p:first-child {
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 4px;
  }
</style>
